package com.douhulu.bytedance.open.bean;

import com.douhulu.bytedance.open.util.json.ByteOpenGsonBuilder;
import lombok.Data;

import java.io.Serializable;

/**
 * <h2> 奕泽云 -  </h2>
 *
 * @Author: 奕泽云 - 曾庆雷
 * @Email: 75881401@qq.com
 * @Since: 2022-05-04 13:36
 * CopyRight：山西威斯汀文化传播有限公司
 */
@Data
public class ByteOpenCallback implements Serializable {

    private static final long serialVersionUID = -4069745419280727420L;

    private String logId;

    private String eventId;

    private String event;

    private String clientKey;

    private String fromUserId;

    private String content;


    public static ByteOpenCallback fromJson(String json) {
        return ByteOpenGsonBuilder.create().fromJson(json, ByteOpenCallback.class);
    }
}
